<template>
	<view>
		<view class="nav-bar">
			<image src="../../../static/back_icon.png" @tap="back" mode=""></image>
			<view class="center">
				账户授权
			</view>
			<view class="right">
			</view>
		</view>
		<view class="pan" v-if="auth">
			<view class="image">
				<image src="" mode=""></image>
			</view>
			<view class="name">
				2qwe12
			</view>
			<view class="agree">
				同意将账户(C***P)的信息授权给推客联盟
			</view>
			<view class="btn">
				确认授权
			</view>
		</view>
		<view class="pan" v-if="!auth">
			<view class="reg">
				<image src="/static/registration/unreg.png" mode=""></image>
			</view>
			<view class="reg-name">
				您未注册账户
			</view>
			<view class="btn" @tap="regist">
				立即注册
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				auth:false
			}
		},
		methods: {
			//导航方法
			back() {
				uni.navigateBack({
					delta: 1
				});
			},
			regist(){
				uni.navigateTo({
					url:"/pages/registration/register/register"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.nav-bar {
		height: 128upx;
		padding: 40upx 28upx 0;
		background: #E8271B;
		display: flex;
		align-items: center;
		justify-content: space-between;
		// position: fixed;
		width: 750upx;
		z-index: 9;

		image {
			width: 48upx;
			height: 48upx;
		}

		.center {
			font-size: 36upx;
			font-weight: 500;
			line-height: 70upx;
			color: rgba(255, 255, 255, 1);
		}

		.right {
			width: 48upx;
			height: 48upx;
		}
	}
	.pan{
		margin-top:30%;
		.image{
			width: 120upx;
			height: 120upx;
			margin: 0 auto;
			image{
				width: 120upx;
				height: 120upx;
				border-radius:50%;
				background: red;
			}
		}
		.name{
			text-align: center;
			font-size:32upx;
			font-weight:500;
			line-height:70upx;
			color:rgba(51,51,51,1);
		}
		.agree{
			text-align: center;
			font-size:28upx;
			font-weight:500;
			line-height:70upx;
			color:rgba(51,51,51,1);
		}
		.btn{
			text-align: center;
			margin: 80upx auto;
			width:648upx;
			height:108upx;
			background:rgba(232,39,27,1);
			border-radius:54upx;
			font-size:36upx;
			font-weight:500;
			line-height:108upx;
			color:rgba(255,255,255,1);
		}
		.reg{
			width: 86upx;
			height: 86upx;
			margin: 0 auto;
			image{
				width: 86upx;
				height: 86upx;
			}
		}
		.reg-name{
			text-align: center;
			font-size:28upx;
			font-weight:400;
			line-height:70upx;
			color:rgba(179,179,179,1);
		}
	}
	
	
	
</style>
